package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsh
 * @since 2020-11-16
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.sys_authority")
public class Authority implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId("sa_id")
	private Long id;

	@TableField("sa_menu_id")
	private Long menuId;

	@TableField("sa_code")
	private String code;

	@TableField("sa_name")
	private String name;

	@TableField("sa_create_user_id")
	private Long createUserId;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("sa_create_time")
	private LocalDateTime createTime;

	@TableField("sa_modify_user_id")
	private Long modifyUserId;

	@TableField("sa_modify_time")
	private LocalDateTime modifyTime;

	@TableField("sa_get_flag")
	private String getFlag;

	@TableField("sa_get_batch")
	private String getBatch;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getGetFlag() {
		return getFlag;
	}

	public void setGetFlag(String getFlag) {
		this.getFlag = getFlag;
	}

	public String getGetBatch() {
		return getBatch;
	}

	public void setGetBatch(String getBatch) {
		this.getBatch = getBatch;
	}

	@Override
	public String toString() {
		return "Authority{" + "id=" + id + ", menuId=" + menuId + ", code=" + code + ", name=" + name
				+ ", createUserId=" + createUserId + ", createTime=" + createTime + ", modifyUserId=" + modifyUserId
				+ ", modifyTime=" + modifyTime + ", getFlag=" + getFlag + ", getBatch=" + getBatch + "}";
	}
}
